package com.cloud.sonixcamerademo;

import android.os.Environment;


/**
 * 与路径相关的全局常量
 */
public class AppPathInfo {

    /** 包名*/
    public static String app_package_name = "/SonixCamera"; // APP package

    /** sdcard目录*/
    public static final String app_sdcard = Environment.getExternalStorageDirectory().getPath();

    /** log*/
    public static final String app_log_save = "/Log";
    /** 固件存放 */
    public static final String app_fw_save = "/FW/";



    /**
     * log save path
     * @return log日志的路径
     */
    public static String getLogPath() {
        return com.cloud.sonixcamerademo.AppPathInfo.app_sdcard
                + com.cloud.sonixcamerademo.AppPathInfo.app_package_name + com.cloud.sonixcamerademo.AppPathInfo.app_log_save;
    }

    /**
     * 下载存放
     * @return
     */
    public static String getFwSavePath() {
        return com.cloud.sonixcamerademo.AppPathInfo.app_sdcard
                + com.cloud.sonixcamerademo.AppPathInfo.app_package_name + com.cloud.sonixcamerademo.AppPathInfo.app_fw_save;
    }

    public static String getAppSdcardPath(){
        return com.cloud.sonixcamerademo.AppPathInfo.app_sdcard;
    }



}
